package 面向对象初级.HomeWork;

//测试类
public class CommonsToolsTest {
    public static void main(String[] args) {
        int week = 3;
        int month = 5;
        int year = 2024;

        // 测试getWeekName方法
        System.out.println("星期" + week + "对应的英语单词是：" + CommonsTools.getWeekName(week));

        // 测试getMonthName方法
        System.out.println("月份" + month + "对应的英语单词是：" + CommonsTools.getMonthName(month));

        // 测试getTotalDaysOfMonth方法
        System.out.println(year + "年" + month + "月的总天数是：" + CommonsTools.getTotalDaysOfMonth(year, month));

        // 测试getTotalDaysOfYear方法
        System.out.println(year + "年的总天数是：" + CommonsTools.getTotalDaysOfYear(year));

        // 测试isLeapYear方法
        System.out.println(year + "年是否是闰年：" + CommonsTools.isLeapYear(year));
    }
}
